package log 
{
	/**
	 * ...
	 * @author carlor
	 */
	public class Log 
	{
		
		public function Log() 
		{
			
		}
		
		static public function errorLog(str: String): void
		{
			trace(str);
		}
		
		static public function formatErrorLog(str: String, arg: Array): void
		{
			var pattern : RegExp = /%%/;
			var argIndex: int = 0;
			while (argIndex < arg.length) {
				str = str.replace(pattern, arg[argIndex++]);
			}
			errorLog(str);
		}
	}

}